# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: demo1.py
@time: 2021/8/15 15:28
'''
import time

import requests

from utils.base import Spider
headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36",
    "cookie":"__zp_stoken__=3809cOFZmBkpzUSxma1wCDmEaN3BXHQQfBHI8NmpVHHJKHyxjDgRDYm5IaEp9AQI8F101WUNmYV1dPk0BWEMWZyEsUBwKcmtOFj4YYnpwD2RDcnsSZygkBSEhOWoROChBJ34lZDwXZ3Z%2BaX4h"
}

res = requests.get('https://www.zhipin.com/job_detail/?query=c%2B%2B&city=101010100&industry=&position=100201',headers = headers)
# time.sleep(3)
print(res.text)
print(res.cookies.get('__zp_stoken__'))